package com.sw.mygoogleplay.global;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

/**
 * 全局变量类
 */
public class GooglePlayApplication extends Application {
    public static Context context;//上下文
    public static Handler mainHandler;//主线程handler

    /**
     * app入口函数
     */
    @Override
    public void onCreate() {
        super.onCreate();
        //初始化context
        context = this;
        //初始化主线程handler
        mainHandler = new Handler();
    }
}
